<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
	<?php $this->load->view('common/top', array('title' => 'SEWIKI - EDITION DETAIL')); ?>
	<body>
		<div id="container">
			<?php $this->load->view('common/header'); ?>
			<div id="content">
				<?php $this->load->view('common/menu'); ?>
				<div id="main">
					<div id="chapter_info_title" class="title">
						第<?=$chapter['number']?>章<?=$chapter['title']?>
						<?php if($chapter['edit_state'] == 0):?>
						<a href="<?=site_url('editor/editionManager/createBlankEdition/' . $chapter['cid'])?>">[创建空白新版本]</a>
						<?php endif; ?>
					</div>
					<div id="chapter_info_desc" class="desc">
						<?=$chapter['description']?>
					</div>
					<div id="edition_detail_title" class="subtitle">
						版本详情
					</div>
					<div id="edition_detail_desc" class="desc" style="border-bottom:1px solid #ecf">
						由 <?=$edition['username']?> 创建于 <?=$edition['create_time']?> <br />
						<?=$edition['comment']?><br />
						<?php foreach($operators as $operator): ?>
						<a href="<?=$operator['op_url']?>">[<?=$operator['op_name']?>]</a>
						<?php endforeach; ?>
					</div>
					<div id="edition_detail" class="text">
						<?=$edition['content']?>
					</div>
				</div>
			</div>
			<?php $this->load->view('common/footer'); ?>
		</div>
	</body>
</html>